import React, { Component } from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';

import Index from '../page/index/index'
import Stores from '../page/stores/stores'
import Articles from '../page/articles/articles'
import Chat from '../page/chatOnline/chatonline'
import Measurement from '../page/measurement/measurement'
import ListPage from '../page/list/list'
import HomeListPage from '../page/homelist/list'
import BaiduMap from '../page/baiduMap/baiduMap'
import BrandIntroduction from '../page/brandIntroduction/brandIntroduction'
import Classification from '../page/classification/classification';
import Screen from '../page/screen/screen';
import MainDetails from '../page/mailDetials/mainDetails';
import Search from '../page/search/search';
import NotFound from '../page/404/404';

export default class Router extends Component {
    render() {
        return (
            <BrowserRouter>
                <Switch>
                    <Route path='/' exact component={Index}></Route>
                    <Route path='/stores' exact component={Stores}></Route>
                    <Route path='/articles' exact component={Articles}></Route>
                    <Route path='/chatonline' exact component={Chat}></Route>
                    <Route path='/measurement' exact component={Measurement}></Route>
                    <Route path='/baidumap' exact component={BaiduMap}></Route>
                    <Route path='/brandIntroduction' exact component={BrandIntroduction}></Route>
                    <Route path='/classification' exact component={Classification}></Route>
                    <Route path='/screen' exact component={Screen}></Route>
                    <Route path='/maindetails' exact component={MainDetails}></Route>
                    <Route path='/list' exact component={ListPage}></Route>
                    <Route path='/homelist' exact component={HomeListPage}></Route>
                    <Route path='/search' exact component={Search}></Route>
                    <Route path='*' exact component={NotFound}></Route>
                </Switch>
            </BrowserRouter>
        )
    }
}
